import store from '@/store/index'
export default {
  methods: {
    checkPerm(key) {
      const points = store.state.user.userInfo.roles.points
      if (points) {
        return points.some(item => key === item)
      }
      //   return false
      // alert(0)
      // console.log(this)
    }
  }
}
